home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 825 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: atglab.bls.com!Alun.Champion
  2. From: Alun.Champion@bridge.bst.bls.com (Alun Champion)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: C vs C++ urgently needed Please
  5. Date: 09 Jan 1996 16:22:46 GMT
  6. Organization: Computer People Inc.
  7. Message-ID: <ALUN.CHAMPION.96Jan9112246@g7240065.bridge.bst.bls.com>
  8. References: <819936532.7746@shuh.demon.co.uk> <DKC41u.MGI@news.cis.umn.edu>
  9.     <820144728snz@intellic.demon.co.uk> <4crp9s$ntb@homesick.cs.unlv.edu>
  10. NNTP-Posting-Host: bstfirewall.bst.bls.com
  11. In-reply-to: wiseman@unlv.edu's message of 8 Jan 1996 18:54:52 GMT
  12.  
  13. In article <4crp9s$ntb@homesick.cs.unlv.edu> wiseman@unlv.edu (Christopher A Weiss) writes:
  14.  
  15. : If you want an interesting wuestion though, try to figure out why they
  16. : called it C++ when (by convention) it should have been called ++C.
  17.  
  18. By which convention should it be ++C ?
  19. Most early books (see Kernighan & Ritchie) use the postfix increment operator
  20. if the value of the increment wasn't necessary ie.
  21.  
  22.   for (i = 0; i < someValue; i++) {
  23.     ...                      ^^^
  24.   }
  25.  
  26. So by that convention it should be C++ - which it is ;')
  27.  
  28. Regards
  29.  
  30.    -A.
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38. -- 
  39. | A.Champion                |
  40.